package com.kuanter.kuanterauto.activity;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.kuanter.kuanterauto.R;
import com.kuanter.kuanterauto.baseui.BaseActivityGroup;
/**
 * 关注我们类
 * @author kuanter
 *
 */
public class AttentionUsActivity extends BaseActivityGroup {
	
	private RelativeLayout Star_weixin; //微信
	private RelativeLayout Star_xinlang; //新浪
	private Button backBtn;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.attention_us);
		//关注我们（控件）
		Star_weixin = (RelativeLayout)this.findViewById(R.id.Star_weixin) ;
		Star_xinlang = (RelativeLayout)this.findViewById(R.id.Star_xinlang) ;
		//（监听）
		Star_weixin.setOnClickListener(this);
		Star_xinlang.setOnClickListener(this);
		//返回
		backBtn = (Button)this.findViewById(R.id.header_left);
		backBtn.setOnClickListener(this);
	}
	
	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.Star_weixin:
		/*Toast.makeText(this, "操作:朋友们->添加朋友", Toast.LENGTH_LONG);
		Intent intent = new Intent();
		ComponentName componentName = new ComponentName("com.tencent.mm","com.tencent.mm.ui.LauncherUI");
		intent.setComponent(componentName);
		//intent.setAction("android.intent.action.VIEW");
		startActivity(intent);*/
		Intent intent = new Intent("android.intent.action.VIEW");
//		intent.setData(Uri.parse("http://weixin.qq.com/r/8HQ7NLHEY48ch6BXnyHU"));
		intent.setData(Uri.parse("http://weixin.qq.com/r/NHXo5ybEphjZhzeEnyAQ"));
		startActivity(intent);
		break;
		case R.id.Star_xinlang:
//		showToast("关注");
		Intent intent2 = new Intent(this,AttentionXinLangWeiboActivity.class);
		startActivity(intent2);
		break;
		case R.id.header_left:
			this.finish();
			break;
		}
	}

}
